package com.ittony.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ittony.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "User")
@TableName("sys_user")
public class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "UserName")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "Password")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "Name")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "Phone")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "HeadURL")
    @TableField("head_url")
    private String headUrl;

    @ApiModelProperty(value = "DepartmentId")
    @TableField("dept_id")
    private Long deptId;

    @ApiModelProperty(value = "PostId")
    @TableField("post_id")
    private Long postId;

    @ApiModelProperty(value = "Description")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "openId")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "Status(1:Normal,0:Stop)")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private List<SysRole> roleList;

    //Post
    @TableField(exist = false)
    private String postName;

    //Department
    @TableField(exist = false)
    private String deptName;



}
